package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.dto.CancelNusingTaskDTO;
import com.zzyl.nursing.dto.DoNursingTaskDTO;
import com.zzyl.nursing.dto.NursingTaskDTO;
import com.zzyl.nursing.vo.NursingTaskDetailVO;
import com.zzyl.nursing.vo.NursingTaskVO;

/**
 * 护理任务Service接口
 * 
 * @author mr.luo
 * @date 2025-06-01
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 查询护理任务
     * 
     * @param id 护理任务主键
     * @return 护理任务
     */
    public NursingTaskDetailVO selectNursingTaskById(Long id);

    /**
     * 查询护理任务列表
     * 
     * @param nursingTaskDTO 护理任务
     * @return 护理任务集合
     */
    public Page<NursingTaskVO> selectNursingTaskList(NursingTaskDTO nursingTaskDTO);

    /**
     * 新增护理任务
     * 
     * @param nursingTask 护理任务
     * @return 结果
     */
    public int insertNursingTask(NursingTask nursingTask);

    /**
     * 修改护理任务
     * 
     * @param nursingTask 护理任务
     * @return 结果
     */
    public int updateNursingTask(NursingTask nursingTask);

    /**
     * 批量删除护理任务
     * 
     * @param ids 需要删除的护理任务主键集合
     * @return 结果
     */
    public int deleteNursingTaskByIds(Long[] ids);

    /**
     * 删除护理任务信息
     * 
     * @param id 护理任务主键
     * @return 结果
     */
    public int deleteNursingTaskById(Long id);

    /**
     *  取消任务
     * @param cancelNusingTaskDTO
     */
    void cancel(CancelNusingTaskDTO cancelNusingTaskDTO);

    /**
     *  执行任务
     * @param doNursingTaskDTO
     */
    void execute(DoNursingTaskDTO doNursingTaskDTO);

    /**
     * 任务改期
     * @param doNursingTaskDTO
     */
    void change(DoNursingTaskDTO doNursingTaskDTO);

    /**
     *  生成月任务
     * @param elder
     */
    void generateMonthlyTask(Elder elder);
}
